﻿using DBUtil;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Text;

namespace Test.SqlServer
{
    [TestClass]
    public class TestBase
    {
        protected DBAccess db = null;
        public TestBase()
        {
            DBUtil.DBFactory.AddDBSupport<DBUtil.Provider.SqlServer.SqlServerDBFactory>();
            //sqlserver 2014
            db = DBFactory.CreateDB("SQLSERVER", "Data Source=.;Initial Catalog=test;User ID=sa;Password=123456;Pooling=True;Max Pool Size=20000;", new DBSettings()
            {

            });
            //db = DBFactory.CreateIDB("SQLSERVER", "Data Source=.;Initial Catalog=FileStreamDB;User ID=sa;Password=123456;");
            //db = DBFactory.CreateIDB("SQLSERVER", "Data Source=.;Initial Catalog=testpartition;User ID=sa;Password=123456;");
        }
    }
}
